package edu.sctu.zhoumengxue.day201505.day20150522;


/**
 * Created by user12 on 2015/5/22.
 */
public class DogTextTwo extends AbstreTextTwo {
    public TextInterFace textinterface;

    public DogTextTwo(TextInterFace textinterface) {
        this.textinterface = textinterface;

    }


    public void getSysOut() {
        textinterface.getInfo(color, size, action);
    }

    @Override
    public void getColor() {
        color = "red";

    }

    @Override
    public void getSize() {
        size = 20;

    }

    @Override
    public void getAction() {
        action = "eat";

    }
}
